import { NgModule } from "@angular/core";
import { RouterModule, Routes } from "@angular/router";
import { PurchaseOrders } from "./components/purchaseOrders/purchaseOrders.component";
import { PurchaseOrdersAdd } from "./components/purchaseOrdersAdd/purchaseOrdersAdd.component";
const routes: Routes = [
    {
      path: 'orders',
      component: PurchaseOrders,
      data:{
         breadcrumb:'采购订单'
      }
    },
    {
      path: 'ordersAdd',
      component: PurchaseOrdersAdd,
      data:{
         breadcrumb:'新增/编辑'
      }
    }
  ];
  
  @NgModule({
    imports: [RouterModule.forChild(routes)],
    exports: [RouterModule]
  })
  export class PurchaseRoutingModule {}